/*
 * @Descripttion: 
 * @version: 
 * @Author: 宁乃楚
 * @Date: 2021-07-04 08:54:27
 * @LastEditors: 宁乃楚
 * @LastEditTime: 2021-07-04 09:26:13
 */
import { get, post, post_json } from '@/http/axios'
export default {
  namespaced: true,
  state: {
    // 栏目数据
    addressData:[]
  },
  mutations: {
    SET_ADDRESSDATA(state, payload){
      state.addressData = payload
    }
  },
  actions: {
    // 获取全部栏目的数据
    async getAllAddressData({commit}, payload){
      let res = await get('/address/pageQuery', payload)
      // console.log(res);
      commit('SET_ADDRESSDATA', res.data.data.list)
    }
  }
}